﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Text;
//using HelpPageErrorSimulator.Areas.HelpPage.ModelDescriptions;
namespace FlightTicketModel
{
    [KnownType(typeof(EntityBase))]
    [DataContractAttribute(IsReference = true)]
    //[ModelNameSpaceConverction]
    //[ModelName("MoneyBank")]
    public class EntityBase
    {
        [Key]
        [JsonProperty(IsReference = true)]
        public long Id { get; set; }
        [JsonProperty(IsReference = true)]
        public Guid Key { get; set; }
        [JsonProperty(IsReference = true)]
        public DateTime? CreateTime { get; set; }
        [JsonProperty(IsReference = true)]
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; } = true;
        [JsonProperty(IsReference = true)]
        /// <summary>
        /// 0未删除,1删除
        /// </summary>
        public byte IsDelete { get; set; }
        [JsonProperty(IsReference = true)]
        public DateTime? UpdateTime { get; set; }
        [JsonProperty(IsReference = true)]
        public DateTime? DeleteTime { get; set; }
        [JsonProperty(IsReference = true)]
        /// <summary>
        /// 任务顺序号
        /// </summary>
        public byte SeqNo { get; set; }
        [JsonProperty(IsReference = true)]
        public FlightTicketModel.TaskStatus TaskStatus { get; set; }
    }
}
